package com.o2opuzi.lib.util;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;

public class ErrorMsgs extends ArrayList<Object>{

	private static final long serialVersionUID = 5331439696570879880L;
	

	public ErrorMsgs(String field,String message) {
			
		add(field, message);
	}
	
	public ErrorMsgs add(String field,String message){
		Map<String, Object> map = new LinkedHashMap<String, Object>();
		map.put("field", field);
		map.put("msg", message);
		add(map);
		return this;
	}
	
	

}
